// 公司管理中心——资料设置

var Material = Vue.component('material', {

    data() {
        return {
            linkArray: [] // 路由
        }
    },
    
    template: `<div class="common__info__box">
                    <div class="common__info__tap">
                        <router-link v-for="(item, index) in linkArray" :key="index" tag="span" :to="{name: item.name}" exact>{{item.text}}</router-link>
                    </div>
                    <div class="common__info__con">
                        <keep-alive>
                            <router-view></router-view>
                        </keep-alive>
                    </div>
                </div>`,
    mounted() {

    },

    methods: {
        
    },

    watch: {
        '$route' (to, from) {

        }
    },

    created() {
        this.linkArray = [
            {
                name: 'legal',
                text: '法人信息'
            },{
                name:'info',
                text: '公司信息'
            },{
                name:'identity',
                text: '公司认证'
            },{
                name:'product',
                text: '公司产品'
            },{
                name:'style',
                text: '产品风格'
            },{
                name:'type',
                text: '产品种类'
            },{
                name:'num',
                text: '款式数量'
            },{
                name:'capacity',
                text: '产量产能'
            },{
                name:'ambient',
                text: '公司环境'
            },{
                name:'equip',
                text: '工厂信息'
            }
        ]
    },
    
})